Equivalence of Functions Represented by Simple Context-Free Grammars with Output

نویسندگان

  • Cédric Bastien
  • Jurek Czyzowicz
  • Wojciech Fraczak
  • Wojciech Rytter
چکیده

A partial function F : Σ∗ → Ω∗ is called a simple function if F (w) ∈ Ω∗ is the output produced in the generation of a word w ∈ Σ∗ from a nonterminal of a simple context free grammar G with output alphabet Ω. In this paper we present an efficient algorithm for testing equivalence of simple functions. Such functions correspond also to onestate deterministic pushdown transducers. Our algorithm works in time polynomial with respect to |G|+v(G), where |G| is the size of the textual description of G, and v(G) is the maximum of the shortest lengths of words generated by nonterminals of G.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Representation of Trees by Languages I

A tree can be represented by a language consisting of a suitable coding of its finite branches. We investigate this representation and derive a number of reductions between certain equivalence problems for context-free tree grammars ~nd recursive program schemes and the (open) equivalence problem for DPDA's. This is the first ~zrt of th~s work: it is devoted to technical results on prefix-free ...

متن کامل

A Polynomial-time Algorithm for Deciding Equivalence of Normed Context-free Processes

A polynomial-time procedure is presented for deciding bisimilarity of normed context-free processes. It follows as a corollary that language equivalence of simple context-free grammars is decidable in polynomial time.

متن کامل

Structure Preserving Transformations on Non-Left-Recursive Grammars (Preliminary Version)

1. INTROOUCTION ANO PRELIMINARIES If a context-free grammar is transformed to another context-free grammar in most of the cases it is quite obvious to demand weak equivalence for these two grammars. Transformations on context-free grammars can be defined for several reasons. Oepen-dent on these reasons one may be interested in stronger relations of grammatical similarity. Instead of arbitrary c...

متن کامل

Equivalence of simple functions

A partial function F : Σ → Ω is called a simple function if F(w) ∈ Ω is the output produced in the leftmost derivation of a word w ∈ Σ from a nonterminal of a simple context free grammar G with output alphabet Ω . In this paper we present an efficient algorithm for testing the equivalence of simple functions. Such functions correspond also to one-state deterministic pushdown transducers. Our al...

متن کامل

On differentiation functions, structure functions, and related languages of context-free grammars

We introduce the notion of a differentiation function of a context-free grammar which gives the number of terminal words that can be derived in a certain number of steps. A grammar is called narrow (or k-narrow) iff its differentiation function is bounded by a constant (by k). We present the basic properties of differentiation functions, especially we relate them to structure function of contex...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006